﻿#!/usr/bin/python
# -*- coding: UTF-8 -*-

import socket

c = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
c.connect(('127.0.0.1',6666))

while True:
	cmd = input('cmd > ')
	cmd1 = cmd
	c.send(cmd.encode())
	if cmd1=='exit':
		c.close()
		break
	data = c.recv(1024).decode()
	print(data)
	
